# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pastejacker
pkgver=12.ed9f153
pkgrel=9
pkgdesc='Hacking systems with the automation of PasteJacking attacks.'
groups=('blackarch' 'blackarch-automation' 'blackarch-exploitation')
arch=('any')
url='https://github.com/D4Vinci/PasteJacker'
license=('custom:unknown')
depends=('metasploit' 'ncurses' 'python' 'python-gnureadline' 'python-jinja')
makedepends=('git' 'python-setuptools')
source=("$pkgname::git+https://github.com/D4Vinci/PasteJacker.git")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  sed '22d' -i setup.py
}

build() {
  cd $pkgname

  python setup.py build
}

package() {
  cd $pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

